package a.f.d.a;

import a.c.e;
import a.c.k;
import a.c.v;
import a.c.y;
import a.c.z;
import a.d.f;
import a.d.s;
import a.f.cd;
import a.f.o;
import a.f.zb;
import a.f.zc;

import java.util.ArrayList;
import java.util.List;

public class rc
{
  private static final double a = Math.sqrt(2.0D);
  private List b = new ArrayList(60);
  private a_[] c = new a_[60];
  public static final Object d = "y.layout.hierarchic.incremental.SelfloopCalculator.MINIMUM_NODE_DISTANCE_DPKEY";
  public static final Object e = "y.layout.hierarchic.incremental.SelfloopCalculator.IS_OCTILINEAR_DPKEY";
  public static final Object f = "y.layout.hierarchic.incremental.SelfloopCalculator.MINIMUM_OCTILINEAR_SEGMENT_LENGTH_DPKEY";
  public static final Object g = "y.layout.hierarchic.incremental.SelfloopCalculator.MINIMUM_FIRST_SEGMENT_LENGTH_DPKEY";
  public static final Object h = "y.layout.hierarchic.incremental.SelfloopCalculator.MINIMUM_LAST_SEGMENT_LENGTH_DPKEY";
  public static final Object i = "y.layout.hierarchic.incremental.SelfloopCalculator.MINIMUM_EDGE_DISTANCE_DPKEY";
  private double j;
  private double k;
  private double l;
  public static int m;
  
  public rc(double paramDouble1, double paramDouble2)
  {
    this.l = paramDouble2;
    this.j = (this.k = paramDouble1);
  }
  
  public void a(o paramo, e parame, k paramk1, k paramk2)
  {
    boolean bool2 = d.R;
    boolean bool1 = d.Q;
    int n = 0;
    a.c.d locald = parame.h();
    label151:
    do
    {
      if (locald == null) {
        break;
      }
      if (bool1) {
        break label173;
      }
      if (locald.g())
      {
        a_ locala_;
        if ((bool2) || (this.b.size() > n))
        {
          locala_ = (a_)this.b.get(n);
          if (bool2) {
            break label151;
          }
          if (!bool1) {}
        }
        else
        {
          locala_ = new a_();
          this.b.add(locala_);
        }
        locala_.a = locald;
        locala_.c = w.a((cd)paramk1.get(locald), 3);
        locala_.d = w.a((cd)paramk2.get(locald), 0);
        n++;
      }
      locald = locald.i();
    } while (!bool1);
    if ((!bool2) && (n > 0)) {
      label173:
      a(paramo, parame, n, null);
    }
  }
  
  public void a(o paramo, e parame, z paramz, k paramk1, k paramk2)
  {
    a(paramo, parame, paramz.f(), paramk1, paramk2, null);
  }
  
  void a(o paramo, e parame, v paramv, k paramk1, k paramk2, f[] paramArrayOff)
  {
    boolean bool2 = d.R;
    boolean bool1 = d.Q;
    int n = 0;
    label112:
    do
    {
      if (paramv == null) {
        break;
      }
      a.c.d locald = (a.c.d)paramv.c();
      if (bool1) {
        break label202;
      }
      if (locald.g())
      {
        a_ locala_;
        if ((bool2) || (this.b.size() > n))
        {
          locala_ = (a_)this.b.get(n);
          if (bool2) {
            break label112;
          }
          if (!bool1) {}
        }
        else
        {
          locala_ = new a_();
          this.b.add(locala_);
        }
        locala_.a = locald;
        if (!bool2) {}
        locala_.c = (paramk1 == null ? 3 : w.a((cd)paramk1.get(locald), 3));
        if (!bool2) {}
        locala_.d = (paramk2 == null ? 3 : w.a((cd)paramk2.get(locald), 0));
        n++;
      }
      paramv = paramv.a();
    } while (!bool1);
    if ((!bool2) && (n > 0)) {
      label202:
      a(paramo, parame, n, paramArrayOff);
    }
  }
  
  private void a(o paramo, e parame, int paramInt, f[] paramArrayOff)
  {
    boolean bool2 = d.R;
    boolean bool1 = d.Q;
    this.c = ((a_[])this.b.toArray(this.c));
    zc localzc = paramo.d(parame);
    double d1 = a(paramo, parame);
    kb[] arrayOfkb = new kb[4];
    int n = 0;
    Object localObject1;
    Object localObject2;
    Object localObject3;
    label303:
    label305:
    label433:
    label561:
    label563:
    do
    {
      if (n >= 4) {
        break;
      }
      arrayOfkb[n] = new kb();
      arrayOfkb[n].c(d1);
      localObject1 = new f(-1.797693134862316E+308D, 1.7976931348623157E+308D, 0.0D);
      if (bool2) {
        break label709;
      }
      if (bool1) {
        break label708;
      }
      if ((bool2) || (paramArrayOff != null))
      {
        if (bool2) {
          continue;
        }
        if ((paramArrayOff.length > n) && ((bool2) || (paramArrayOff[n] != null)))
        {
          localObject2 = paramArrayOff[n];
          f localf = new f(-1.797693134862316E+308D, 1.7976931348623157E+308D, 0.0D);
          if (!bool2) {}
          switch (n)
          {
          case 0: 
            ((f)localObject2).b(-localzc.c() * 0.5D);
            localObject3 = ((f)localObject2).f();
            if (localObject3 != null) {}
            while (bool2)
            {
              localf.c(((f)localObject2).b((f.a_)localObject3), ((f)localObject2).d((f.a_)localObject3), -((f)localObject2).a((f.a_)localObject3));
              localObject3 = ((f.a_)localObject3).b();
              if (bool2) {
                break label305;
              }
              if (bool1) {
                break label303;
              }
              if (!bool1) {
                break;
              }
            }
            ((f)localObject2).b(localzc.c() * 0.5D);
            if (!bool1) {
              break;
            }
          case 1: 
            ((f)localObject2).b(-localzc.d() * 0.5D);
            ((f)localObject2).a(-localzc.c());
            localObject3 = ((f)localObject2).f();
            if (localObject3 != null) {}
            do
            {
              localf.c(((f)localObject2).b((f.a_)localObject3), ((f)localObject2).d((f.a_)localObject3), ((f)localObject2).a((f.a_)localObject3));
              localObject3 = ((f.a_)localObject3).b();
              if (bool2) {
                break label433;
              }
              if (bool1) {
                break label431;
              }
              if (!bool1) {
                break;
              }
              ((f)localObject2).a(localzc.c());
            } while (bool2);
            ((f)localObject2).b(localzc.d() * 0.5D);
            if (!bool1) {
              break;
            }
          case 2: 
            ((f)localObject2).b(-localzc.c() * 0.5D);
            ((f)localObject2).a(-localzc.d());
            localObject3 = ((f)localObject2).f();
            if (localObject3 != null) {}
            do
            {
              localf.c(-((f)localObject2).d((f.a_)localObject3), -((f)localObject2).b((f.a_)localObject3), ((f)localObject2).a((f.a_)localObject3));
              localObject3 = ((f.a_)localObject3).b();
              if (bool2) {
                break label563;
              }
              if (bool1) {
                break label561;
              }
              if (!bool1) {
                break;
              }
              ((f)localObject2).a(localzc.d());
            } while (bool2);
            ((f)localObject2).b(localzc.c() * 0.5D);
            if (!bool1) {
              break;
            }
          case 3: 
            ((f)localObject2).b(-localzc.d() * 0.5D);
            localObject3 = ((f)localObject2).f();
            if (localObject3 != null)
            {
              if (bool2) {}
            }
            else
            {
              while (bool2)
              {
                localf.c(-((f)localObject2).d((f.a_)localObject3), -((f)localObject2).b((f.a_)localObject3), -((f)localObject2).a((f.a_)localObject3));
                localObject3 = ((f.a_)localObject3).b();
                if (bool1) {
                  break label667;
                }
                if (!bool1) {
                  break;
                }
              }
              ((f)localObject2).b(localzc.d() * 0.5D);
            }
            break;
          }
          ((f)localObject1).d(localf);
        }
      }
      arrayOfkb[n].c((f)localObject1);
      n++;
    } while (!bool1);
    label431:
    if (!bool2)
    {
      a(paramo, paramInt, localzc, arrayOfkb, 1.0D);
      label708:
      label709:
      n = 0;
      do
      {
        do
        {
          if (n >= 4) {
            break;
          }
          arrayOfkb[n].u();
          n++;
          if (bool2) {
            break label753;
          }
          if (bool1) {
            break label751;
          }
        } while (!bool1);
      } while (bool2);
      n = 0;
    }
    label667:
    label751:
    label753:
    do
    {
      if (n >= paramInt) {
        break;
      }
      localObject1 = this.c[n];
      localObject2 = paramo.e(((a_)localObject1).a);
      ((zb)localObject2).b();
      int i1 = 4 + ((a_)localObject1).d - ((a_)localObject1).c & 0x3;
      localObject3 = paramo.p(((a_)localObject1).a);
      a.d.w localw1 = paramo.q(((a_)localObject1).a);
      z localz = b(paramo, ((a_)localObject1).a) ? c(localzc, arrayOfkb, (a_)localObject1, i1, (a.d.w)localObject3, localw1) : a(localzc, arrayOfkb, (a_)localObject1, i1, (a.d.w)localObject3, localw1);
      y localy = localz.h();
      do
      {
        if (!localy.e()) {
          break;
        }
        a.d.w localw2 = (a.d.w)localy.j();
        ((zb)localObject2).a(localw2.a, localw2.b);
        localy.f();
        if (bool2) {
          break label949;
        }
        if (bool1) {
          break label947;
        }
      } while (!bool1);
      if (!bool2) {
        n++;
      }
    } while (!bool1);
    label947:
    label949:
    return;
  }
  
  private void a(o paramo, int paramInt, zc paramzc, kb[] paramArrayOfkb, double paramDouble)
  {
    boolean bool3 = d.R;
    boolean bool2 = d.Q;
    double d1 = (Math.max(paramzc.c(), paramzc.d()) + 50.0D) * 4.0D;
    sb localsb = sb.c(paramo);
    int n = 0;
    label657:
    label4433:
    do
    {
      if (n >= paramInt) {
        break;
      }
      a_ locala_ = this.c[n];
      int i1 = 4 + locala_.d - locala_.c & 0x3;
      a.d.w localw1 = paramo.p(locala_.a);
      a.d.w localw2 = paramo.q(locala_.a);
      boolean bool1 = b(paramo, locala_.a);
      double d2 = c(paramo, locala_.a);
      double d3 = d2 / a;
      double d4 = d2;
      double d5 = e(paramo, locala_.a);
      double d6 = a(paramo, locala_.a);
      double d7 = d(paramo, locala_.a);
      double[] arrayOfDouble1 = new double[2];
      s locals1 = null;
      double d8 = bool1 ? d3 : 0.0D;
      if (!bool3) {}
      double d9;
      double d10;
      double d13;
      double d14;
      double d12;
      double d11;
      double d15;
      double d16;
      switch (i1)
      {
      case 0: 
        switch (locala_.c)
        {
        case 0: 
        default: 
          d9 = localw1.a;
          d10 = localw2.a;
          if (!bool3) {}
          localsb.a(paramo, locala_.a, (byte)0, arrayOfDouble1, true, localw1.a < localw2.a);
          paramArrayOfkb[locala_.c].a(locala_, paramDouble, Math.max(d5, arrayOfDouble1[1] * 2.0D), Math.max(d5, arrayOfDouble1[0] * 2.0D), d9, true, d10, true, bool1, d2).p = Math.max(d6, d7);
          if (!bool3) {
            if (!bool2) {
              break label4433;
            }
          }
        case 1: 
          d9 = localw1.b;
          d10 = localw2.b;
          if (!bool3) {}
          localsb.a(paramo, locala_.a, (byte)1, arrayOfDouble1, false, localw1.b < localw2.b);
          paramArrayOfkb[locala_.c].a(locala_, paramDouble, Math.max(d5, arrayOfDouble1[0] * 2.0D), Math.max(d5, arrayOfDouble1[1] * 2.0D), d9, true, d10, true, bool1, d2).p = Math.max(d6, d7);
          if (!bool3) {
            if (!bool2) {
              break label4433;
            }
          }
        case 2: 
          d9 = -localw1.a;
          d10 = -localw2.a;
          if (!bool3) {}
          localsb.a(paramo, locala_.a, (byte)0, arrayOfDouble1, true, localw1.a < localw2.a);
          paramArrayOfkb[locala_.c].a(locala_, paramDouble, Math.max(d5, arrayOfDouble1[0] * 2.0D), Math.max(d5, arrayOfDouble1[1] * 2.0D), d9, true, d10, true, bool1, d2).p = Math.max(d6, d7);
          if (bool3) {
            break label657;
          }
          if (!bool2) {
            break label4433;
          }
        }
        d9 = -localw1.b;
        d10 = -localw2.b;
        if (!bool3) {}
        localsb.a(paramo, locala_.a, (byte)1, arrayOfDouble1, false, localw1.b < localw2.b);
        paramArrayOfkb[locala_.c].a(locala_, paramDouble, Math.max(d5, arrayOfDouble1[1] * 2.0D), Math.max(d5, arrayOfDouble1[0] * 2.0D), d9, true, d10, true, bool1, d2).p = Math.max(d6, d7);
        if (!bool2) {
          break;
        }
      case 1: 
        d13 = 0.0D;
        d14 = 0.0D;
        switch (locala_.c)
        {
        case 0: 
        default: 
          d9 = localw1.a;
          d12 = localw2.b;
          d10 = d1 + localw2.b;
          d11 = -d1 + localw1.a;
          locals1 = localsb.a(paramo, locala_.a, (byte)0, arrayOfDouble1, true, true);
          if (!bool3) {
            d14 = Math.max(0.0D, locals1.a - paramzc.c() * 0.5D + d9 + d8);
          }
          d15 = bool1 ? Math.max(d6, d3 + d4 - (paramzc.d() * 0.5D + localw2.b)) : d6;
          paramArrayOfkb[locala_.c].a(locala_, paramDouble, Math.max(d5, arrayOfDouble1[1] * 2.0D), Math.max(d5, arrayOfDouble1[0] * 2.0D), d9, true, d10, true, bool1, d2).p = d15;
          d16 = bool1 ? Math.max(d7, d3 + d4 - (paramzc.c() * 0.5D - localw1.a)) : d7;
          paramArrayOfkb[locala_.d].a(locala_, paramDouble, d5, d12, true, d11, true, bool1, d2).p = Math.max(d16, d14);
          break;
        case 1: 
          d9 = localw1.b;
          d12 = -localw2.a;
          d10 = d1 - localw2.a;
          d11 = -d1 + localw1.b;
          locals1 = localsb.a(paramo, locala_.a, (byte)0, arrayOfDouble1, true, false);
          if (!bool3) {
            d13 = Math.max(0.0D, locals1.a - paramzc.c() * 0.5D - d12 + d8);
          }
          d15 = bool1 ? Math.max(d6, d3 + d4 - (paramzc.c() * 0.5D - localw2.a)) : d6;
          paramArrayOfkb[locala_.c].a(locala_, paramDouble, d5, d9, true, d10, true, bool1, d2).p = Math.max(d15, d13);
          d16 = bool1 ? Math.max(d7, d3 + d4 - (paramzc.d() * 0.5D - localw1.b)) : d7;
          paramArrayOfkb[locala_.d].a(locala_, paramDouble, Math.max(d5, arrayOfDouble1[0] * 2.0D), Math.max(d5, arrayOfDouble1[1] * 2.0D), d12, true, d11, true, bool1, d2).p = d16;
          break;
        case 2: 
          d9 = -localw1.a;
          d12 = -localw2.b;
          d10 = d1 - localw2.b;
          d11 = -d1 - localw1.a;
          locals1 = localsb.a(paramo, locala_.a, (byte)0, arrayOfDouble1, true, false);
          if (!bool3) {
            d14 = Math.max(0.0D, locals1.a - paramzc.c() * 0.5D + d9 + d8);
          }
          d15 = bool1 ? Math.max(d6, d3 + d4 - (paramzc.d() * 0.5D - localw2.b)) : d6;
          paramArrayOfkb[locala_.c].a(locala_, paramDouble, Math.max(d5, arrayOfDouble1[0] * 2.0D), Math.max(d5, arrayOfDouble1[1] * 2.0D), d9, true, d10, true, bool1, d2).p = d15;
          d16 = bool1 ? Math.max(d7, d3 + d4 - (paramzc.c() * 0.5D + localw1.a)) : d7;
          paramArrayOfkb[locala_.d].a(locala_, paramDouble, d5, d12, true, d11, true, bool1, d2).p = Math.max(d16, d14);
          break;
        case 3: 
          d9 = -localw1.b;
          d12 = localw2.a;
          d10 = d1 + localw2.a;
          d11 = -d1 - localw1.b;
          locals1 = localsb.a(paramo, locala_.a, (byte)0, arrayOfDouble1, true, true);
          if (!bool3) {
            d13 = Math.max(0.0D, locals1.a - paramzc.c() * 0.5D - d12 + d8);
          }
          d15 = bool1 ? Math.max(d6, d3 + d4 - (paramzc.c() * 0.5D + localw2.a)) : d6;
          paramArrayOfkb[locala_.c].a(locala_, paramDouble, d5, d9, true, d10, true, bool1, d2).p = Math.max(d15, d13);
          d16 = bool1 ? Math.max(d7, d3 + d4 - (paramzc.d() * 0.5D + localw1.b)) : d7;
          paramArrayOfkb[locala_.d].a(locala_, paramDouble, Math.max(d5, arrayOfDouble1[1] * 2.0D), Math.max(d5, arrayOfDouble1[0] * 2.0D), d12, true, d11, true, bool1, d2).p = d16;
        }
        break;
      case 2: 
        d16 = 0.0D;
        double d17 = 0.0D;
        double[] arrayOfDouble2 = new double[2];
        s locals2;
        switch (locala_.c)
        {
        case 0: 
        default: 
          d9 = localw1.a;
          d12 = -localw2.a;
          d10 = d1 - localw2.a;
          d11 = -d1 + localw1.a;
          locals1 = localsb.a(paramo, locala_.a, (byte)0, arrayOfDouble1, true, true, (byte)2);
          locals2 = localsb.a(paramo, locala_.a, (byte)0, arrayOfDouble2, true, false, (byte)1);
          d17 = Math.max(0.0D, locals1.a - paramzc.c() * 0.5D + d9 + d8);
          if (!bool3) {
            d17 = Math.max(d17, locals2.a - paramzc.c() * 0.5D - d12 + d8);
          }
          d13 = bool1 ? Math.max(d6, (d4 - paramzc.d()) * 0.5D) : d6;
          paramArrayOfkb[locala_.c].a(locala_, paramDouble, Math.max(d5, arrayOfDouble1[1] * 2.0D), Math.max(d5, arrayOfDouble1[0] * 2.0D), d9, true, d10 + d1, true, bool1, d2).p = d13;
          d14 = bool1 ? Math.max(d7, d3 + d4 - (paramzc.c() * 0.5D - Math.max(localw1.a, localw2.a))) : d7;
          paramArrayOfkb[(locala_.c + 1 & 0x3)].a(locala_, paramDouble, d5, d10, true, d11, true, bool1, d2).p = Math.max(d14, d17);
          d15 = bool1 ? Math.max(d7, (d4 - paramzc.d()) * 0.5D) : d7;
          paramArrayOfkb[locala_.d].a(locala_, paramDouble, Math.max(d5, arrayOfDouble2[0] * 2.0D), Math.max(d5, arrayOfDouble2[1] * 2.0D), d12, true, d11 - d1, true, bool1, d2).p = d15;
          break;
        case 1: 
          d9 = localw1.b;
          d12 = -localw2.b;
          d10 = d1 - localw2.b;
          d11 = -d1 + localw1.b;
          locals1 = localsb.a(paramo, locala_.a, (byte)0, arrayOfDouble1, true, false);
          if (!bool3) {
            d16 = Math.max(0.0D, locals1.a - paramzc.c());
          }
          d13 = bool1 ? Math.max(d6, (d4 - paramzc.c()) * 0.5D) : d6;
          paramArrayOfkb[locala_.c].a(locala_, paramDouble, d5, d9, true, d10 + d1, true, bool1, d2).p = Math.max(d13, d16);
          d14 = bool1 ? Math.max(d7, d3 + d4 - (paramzc.d() * 0.5D - Math.max(localw1.b, localw2.b))) : d7;
          paramArrayOfkb[(locala_.c + 1 & 0x3)].a(locala_, paramDouble, Math.max(d5, arrayOfDouble1[0] * 2.0D), Math.max(d5, arrayOfDouble1[1] * 2.0D), d10, true, d11, true, bool1, d2).p = d14;
          d15 = bool1 ? Math.max(d7, (d4 - paramzc.c()) * 0.5D) : d7;
          paramArrayOfkb[locala_.d].a(locala_, paramDouble, d5, d12, true, d11 - d1, true, bool1, d2).p = d15;
          break;
        case 2: 
          d9 = -localw1.a;
          d12 = localw2.a;
          d10 = d1 + localw2.a;
          d11 = -d1 - localw1.a;
          locals1 = localsb.a(paramo, locala_.a, (byte)0, arrayOfDouble1, true, false, (byte)2);
          locals2 = localsb.a(paramo, locala_.a, (byte)0, arrayOfDouble2, true, true, (byte)1);
          d17 = Math.max(0.0D, locals1.a - paramzc.c() * 0.5D + d9 + d8);
          if (!bool3) {
            d17 = Math.max(d17, locals2.a - paramzc.c() * 0.5D - d12 + d8);
          }
          d13 = bool1 ? Math.max(d6, (d4 - paramzc.d()) * 0.5D) : d6;
          paramArrayOfkb[locala_.c].a(locala_, paramDouble, Math.max(d5, arrayOfDouble1[0] * 2.0D), Math.max(d5, arrayOfDouble1[1] * 2.0D), d9, true, d10 + d1, true, bool1, d2).p = d13;
          d14 = bool1 ? Math.max(d7, d3 + d4 - (paramzc.c() * 0.5D + Math.min(localw1.a, localw2.a))) : d7;
          paramArrayOfkb[(locala_.c + 1 & 0x3)].a(locala_, paramDouble, d5, d10, true, d11, true, bool1, d2).p = Math.max(d14, d17);
          d15 = bool1 ? Math.max(d7, (d4 - paramzc.d()) * 0.5D) : d7;
          paramArrayOfkb[locala_.d].a(locala_, paramDouble, Math.max(d5, arrayOfDouble2[1] * 2.0D), Math.max(d5, arrayOfDouble2[0] * 2.0D), d12, true, d11 - d1, true, bool1, d2).p = d15;
          break;
        case 3: 
          d9 = -localw1.b;
          d12 = localw2.b;
          d10 = d1 + localw2.b;
          d11 = -d1 - localw1.b;
          locals1 = localsb.a(paramo, locala_.a, (byte)0, arrayOfDouble1, true, true);
          if (!bool3) {
            d16 = Math.max(0.0D, locals1.a - paramzc.c());
          }
          d13 = bool1 ? Math.max(d6, (d4 - paramzc.c()) * 0.5D) : d6;
          paramArrayOfkb[locala_.c].a(locala_, paramDouble, d5, d9, true, d10 + d1, true, bool1, d2).p = Math.max(d13, d16);
          d14 = bool1 ? Math.max(d7, d3 + d4 - (paramzc.d() * 0.5D + Math.min(localw1.b, localw2.b))) : d7;
          paramArrayOfkb[(locala_.c + 1 & 0x3)].a(locala_, paramDouble, Math.max(d5, arrayOfDouble1[1] * 2.0D), Math.max(d5, arrayOfDouble1[0] * 2.0D), d10, true, d11, true, bool1, d2).p = d14;
          d15 = bool1 ? Math.max(d7, (d4 - paramzc.c()) * 0.5D) : d7;
          paramArrayOfkb[locala_.d].a(locala_, paramDouble, d5, d12, true, d11 - d1, true, bool1, d2).p = d15;
        }
        break;
      case 3: 
        d13 = 0.0D;
        d14 = 0.0D;
        switch (locala_.c)
        {
        case 0: 
        default: 
          d9 = localw1.a;
          d12 = -localw2.b;
          d10 = -d1 - localw2.b;
          d11 = d1 + localw1.a;
          locals1 = localsb.a(paramo, locala_.a, (byte)0, arrayOfDouble1, true, false);
          if (!bool3) {
            d14 = Math.max(0.0D, locals1.a - paramzc.c() * 0.5D - d9 + d8);
          }
          d15 = bool1 ? Math.max(d6, d3 + d4 - (paramzc.d() * 0.5D + localw2.b)) : d6;
          paramArrayOfkb[locala_.c].a(locala_, paramDouble, Math.max(d5, arrayOfDouble1[1] * 2.0D), Math.max(d5, arrayOfDouble1[0] * 2.0D), d9, true, d10, true, bool1, d2).p = d15;
          d16 = bool1 ? Math.max(d7, d3 + d4 - (paramzc.c() * 0.5D + localw1.a)) : d7;
          paramArrayOfkb[locala_.d].a(locala_, paramDouble, d5, d12, true, d11, true, bool1, d2).p = Math.max(d16, d14);
          break;
        case 1: 
          d9 = localw1.b;
          d12 = localw2.a;
          d10 = -d1 + localw2.a;
          d11 = d1 + localw1.b;
          locals1 = localsb.a(paramo, locala_.a, (byte)0, arrayOfDouble1, true, false);
          if (!bool3) {
            d13 = Math.max(0.0D, locals1.a - paramzc.c() * 0.5D + d12 + d8);
          }
          d15 = bool1 ? Math.max(d6, d3 + d4 - (paramzc.c() * 0.5D - localw2.a)) : d6;
          paramArrayOfkb[locala_.c].a(locala_, paramDouble, d5, d9, true, d10, true, bool1, d2).p = Math.max(d15, d13);
          d16 = bool1 ? Math.max(d7, d3 + d4 - (paramzc.d() * 0.5D + localw1.b)) : d7;
          paramArrayOfkb[locala_.d].a(locala_, paramDouble, Math.max(d5, arrayOfDouble1[1] * 2.0D), Math.max(d5, arrayOfDouble1[0] * 2.0D), d12, true, d11, true, bool1, d2).p = d16;
          break;
        case 2: 
          d9 = -localw1.a;
          d12 = localw2.b;
          d10 = -d1 + localw2.b;
          d11 = d1 - localw1.a;
          locals1 = localsb.a(paramo, locala_.a, (byte)0, arrayOfDouble1, true, true);
          if (!bool3) {
            d14 = Math.max(0.0D, locals1.a - paramzc.c() * 0.5D - d9 + d8);
          }
          d15 = bool1 ? Math.max(d6, d3 + d4 - (paramzc.d() * 0.5D - localw2.b)) : d6;
          paramArrayOfkb[locala_.c].a(locala_, paramDouble, Math.max(d5, arrayOfDouble1[0] * 2.0D), Math.max(d5, arrayOfDouble1[1] * 2.0D), d9, true, d10, true, bool1, d2).p = d15;
          d16 = bool1 ? Math.max(d7, d3 + d4 - (paramzc.c() * 0.5D - localw1.a)) : d7;
          paramArrayOfkb[locala_.d].a(locala_, paramDouble, d5, d12, true, d11, true, bool1, d2).p = Math.max(d16, d14);
          break;
        case 3: 
          d9 = -localw1.b;
          d12 = -localw2.a;
          d10 = -d1 - localw2.a;
          d11 = d1 - localw1.b;
          locals1 = localsb.a(paramo, locala_.a, (byte)0, arrayOfDouble1, true, true);
          if (!bool3) {
            d13 = Math.max(0.0D, locals1.a - paramzc.c() * 0.5D + d12 + d8);
          }
          d15 = bool1 ? Math.max(d6, d3 + d4 - (paramzc.c() * 0.5D + localw2.a)) : d6;
          paramArrayOfkb[locala_.c].a(locala_, paramDouble, d5, d9, true, d10, true, bool1, d2).p = Math.max(d15, d13);
          d16 = bool1 ? Math.max(d7, d3 + d4 - (paramzc.d() * 0.5D - localw1.b)) : d7;
          paramArrayOfkb[locala_.d].a(locala_, paramDouble, Math.max(d5, arrayOfDouble1[0] * 2.0D), Math.max(d5, arrayOfDouble1[1] * 2.0D), d12, true, d11, true, bool1, d2).p = d16;
        }
        break;
      }
      n++;
    } while (!bool2);
  }
  
  private static z a(zc paramzc, kb[] paramArrayOfkb, a_ parama_, int paramInt, a.d.w paramw1, a.d.w paramw2)
  {
    boolean bool2 = d.R;
    boolean bool1 = d.Q;
    z localz = new z();
    int n = parama_.c;
    int i1 = parama_.d;
    if (!bool2) {}
    int i2 = (parama_.d & 0x1) == 0 ? 1 : 0;
    a.d.w localw1;
    a.d.w localw2;
    switch (paramInt)
    {
    case 0: 
      localw1 = a(paramzc, paramw1, n, paramArrayOfkb[parama_.c].d(parama_));
      localz.add(localw1);
      localw2 = a(paramzc, paramw2, i1, paramArrayOfkb[parama_.d].d(parama_));
      if (!bool2)
      {
        localz.add(localw2);
        if (!bool1) {
          break;
        }
      }
      break;
    case 1: 
    case 3: 
      localw1 = a(paramzc, paramw1, n, paramArrayOfkb[parama_.c].d(parama_));
      localz.add(localw1);
      localw2 = a(paramzc, paramw2, i1, paramArrayOfkb[parama_.d].d(parama_));
      if (!bool2) {
        if (i2 != 0)
        {
          localz.add(new a.d.w(localw1.a, localw2.b));
          if (bool2) {
            break label279;
          }
          if (!bool1) {
            break label264;
          }
        }
      }
      localz.add(new a.d.w(localw2.a, localw1.b));
      if (!bool2)
      {
        localz.add(localw2);
        if (!bool1) {
          break;
        }
      }
      break;
    case 2: 
      label264:
      label279:
      localw1 = a(paramzc, paramw1, n, paramArrayOfkb[parama_.c].d(parama_));
      localw2 = a(paramzc, paramw2, i1, paramArrayOfkb[parama_.d].d(parama_));
      double d1 = paramArrayOfkb[(parama_.c + 1 & 0x3)].d(parama_);
      localz.add(localw1);
      if (!bool2) {
        switch (parama_.c)
        {
        case 0: 
          localz.add(new a.d.w(paramzc.a() + paramzc.c() + d1, localw1.b));
          localz.add(new a.d.w(paramzc.a() + paramzc.c() + d1, localw2.b));
          if (!bool2) {
            if (!bool1) {
              break;
            }
          }
          break;
        case 1: 
          localz.add(new a.d.w(localw1.a, paramzc.b() + paramzc.d() + d1));
          localz.add(new a.d.w(localw2.a, paramzc.b() + paramzc.d() + d1));
          if (!bool2) {
            if (!bool1) {
              break;
            }
          }
          break;
        case 2: 
          localz.add(new a.d.w(paramzc.a() - d1, localw1.b));
          localz.add(new a.d.w(paramzc.a() - d1, localw2.b));
          if (!bool2) {
            if (!bool1) {
              break;
            }
          }
          break;
        case 3: 
          localz.add(new a.d.w(localw1.a, paramzc.b() - d1));
          localz.add(new a.d.w(localw2.a, paramzc.b() - d1));
        }
      }
      localz.add(localw2);
    }
    return localz;
  }
  
  protected double a(o paramo, a.c.d paramd)
  {
    k localk = paramo.c(g);
    if ((d.R) || (localk != null)) {
      return localk.getDouble(paramd);
    }
    return this.j;
  }
  
  protected boolean b(o paramo, a.c.d paramd)
  {
    k localk = paramo.c(e);
    if ((d.R) || (localk != null)) {
      return localk.getBool(paramd);
    }
    return false;
  }
  
  protected double c(o paramo, a.c.d paramd)
  {
    k localk = paramo.c(f);
    if ((d.R) || (localk != null)) {
      return localk.getDouble(paramd);
    }
    return 0.0D;
  }
  
  protected double d(o paramo, a.c.d paramd)
  {
    k localk = paramo.c(h);
    if ((d.R) || (localk != null)) {
      return localk.getDouble(paramd);
    }
    return this.k;
  }
  
  protected double e(o paramo, a.c.d paramd)
  {
    k localk = paramo.c(i);
    if ((d.R) || (localk != null)) {
      return localk.getDouble(paramd);
    }
    return this.l;
  }
  
  protected double a(o paramo, e parame)
  {
    k localk = paramo.c(d);
    if ((d.R) || (localk != null)) {
      return localk.getDouble(parame);
    }
    return Math.max(this.l, Math.max(this.j, this.k));
  }
  
  private static z c(zc paramzc, kb[] paramArrayOfkb, a_ parama_, int paramInt, a.d.w paramw1, a.d.w paramw2)
  {
    boolean bool2 = d.R;
    boolean bool1 = d.Q;
    z localz = new z();
    double d1 = paramzc.a() + paramzc.c();
    double d2 = paramzc.b() + paramzc.d();
    kb.g_ localg_1;
    double d6;
    a.d.w localw4;
    a.d.w localw7;
    a.d.w localw8;
    kb.g_ localg_2;
    double d7;
    a.d.w localw2;
    a.d.w localw3;
    a.d.w localw5;
    a.d.w localw6;
    switch (paramInt)
    {
    case 0: 
      localg_1 = paramArrayOfkb[parama_.c].a(parama_);
      double d3;
      a.d.w localw1;
      double d9;
      double d10;
      switch (parama_.c)
      {
      case 0: 
      default: 
        d3 = paramzc.a() + paramzc.c() * 0.5D + paramw1.a;
        d6 = paramzc.a() + paramzc.c() * 0.5D + paramw2.a;
        localw1 = new a.d.w(d3, paramzc.b() - localg_1.h + (localg_1.u - localg_1.f));
        localz.add(localw1);
        if (!bool2) {}
        d9 = d3 < d6 ? d3 + (localg_1.u - localg_1.f) : d3 - (localg_1.u - localg_1.f);
        localw4 = new a.d.w(d9, paramzc.b() - localg_1.h);
        localz.add(localw4);
        if (!bool2) {}
        d10 = d3 < d6 ? d6 - (localg_1.u - localg_1.f) : d6 + (localg_1.u - localg_1.f);
        localw7 = new a.d.w(d10, localw4.b);
        localz.add(localw7);
        localw8 = new a.d.w(d6, localw1.b);
        if (!bool2)
        {
          localz.add(localw8);
          if (!bool1) {
            break;
          }
        }
        break;
      case 1: 
        d3 = paramzc.b() + paramzc.d() * 0.5D + paramw1.b;
        d6 = paramzc.b() + paramzc.d() * 0.5D + paramw2.b;
        localw1 = new a.d.w(d1 + localg_1.h - (localg_1.u - localg_1.f), d3);
        localz.add(localw1);
        if (!bool2) {}
        d9 = d3 < d6 ? d3 + (localg_1.u - localg_1.f) : d3 - (localg_1.u - localg_1.f);
        localw4 = new a.d.w(d1 + localg_1.h, d9);
        localz.add(localw4);
        if (!bool2) {}
        d10 = d3 < d6 ? d6 - (localg_1.u - localg_1.f) : d6 + (localg_1.u - localg_1.f);
        localw7 = new a.d.w(localw4.a, d10);
        localz.add(localw7);
        localw8 = new a.d.w(localw1.a, d6);
        if (!bool2)
        {
          localz.add(localw8);
          if (!bool1) {
            break;
          }
        }
        break;
      case 2: 
        d3 = paramzc.a() + paramzc.c() * 0.5D + paramw1.a;
        d6 = paramzc.a() + paramzc.c() * 0.5D + paramw2.a;
        localw1 = new a.d.w(d3, d2 + localg_1.h - (localg_1.u - localg_1.f));
        localz.add(localw1);
        if (!bool2) {}
        d9 = d3 < d6 ? d3 + (localg_1.u - localg_1.f) : d3 - (localg_1.u - localg_1.f);
        localw4 = new a.d.w(d9, d2 + localg_1.h);
        localz.add(localw4);
        if (!bool2) {}
        d10 = d3 < d6 ? d6 - (localg_1.u - localg_1.f) : d6 + (localg_1.u - localg_1.f);
        localw7 = new a.d.w(d10, localw4.b);
        localz.add(localw7);
        localw8 = new a.d.w(d6, localw1.b);
        if (!bool2)
        {
          localz.add(localw8);
          if (!bool1) {
            break;
          }
        }
        break;
      case 3: 
        d3 = paramzc.b() + paramzc.d() * 0.5D + paramw1.b;
        d6 = paramzc.b() + paramzc.d() * 0.5D + paramw2.b;
        localw1 = new a.d.w(paramzc.a() - localg_1.h + (localg_1.u - localg_1.f), d3);
        localz.add(localw1);
        if (!bool2) {}
        d9 = d3 < d6 ? d3 + (localg_1.u - localg_1.f) : d3 - (localg_1.u - localg_1.f);
        localw4 = new a.d.w(paramzc.a() - localg_1.h, d9);
        localz.add(localw4);
        if (!bool2) {}
        d10 = d3 < d6 ? d6 - (localg_1.u - localg_1.f) : d6 + (localg_1.u - localg_1.f);
        localw7 = new a.d.w(localw4.a, d10);
        localz.add(localw7);
        localw8 = new a.d.w(localw1.a, d6);
        if (!bool2)
        {
          localz.add(localw8);
          if (!bool1) {
            break;
          }
        }
        break;
      }
      break;
    case 1: 
      localg_1 = paramArrayOfkb[parama_.c].a(parama_);
      localg_2 = paramArrayOfkb[parama_.d].a(parama_);
      double d4;
      switch (parama_.c)
      {
      case 0: 
      default: 
        d4 = paramzc.a() + paramzc.c() * 0.5D + paramw1.a;
        d7 = paramzc.b() + paramzc.d() * 0.5D + paramw2.b;
        localw2 = new a.d.w(d4, paramzc.b() - localg_1.h + (localg_1.u - localg_1.f));
        localz.add(localw2);
        localw3 = new a.d.w(d4 + (localg_1.u - localg_1.f), paramzc.b() - localg_1.h);
        localz.add(localw3);
        localw4 = new a.d.w(d1 + localg_2.h - (localg_2.g - localg_2.v), localw3.b);
        localz.add(localw4);
        localw5 = new a.d.w(d1 + localg_2.h, localw4.b + (localg_2.g - localg_2.v));
        localz.add(localw5);
        localw6 = new a.d.w(localw5.a, d7 - (localg_2.g - localg_2.v));
        localz.add(localw6);
        localw7 = new a.d.w(localw6.a - (localg_2.g - localg_2.v), d7);
        if (!bool2)
        {
          localz.add(localw7);
          if (!bool1) {
            break;
          }
        }
        break;
      case 1: 
        d4 = paramzc.b() + paramzc.d() * 0.5D + paramw1.b;
        d7 = paramzc.a() + paramzc.c() * 0.5D + paramw2.a;
        localw2 = new a.d.w(d1 + localg_1.h - (localg_1.u - localg_1.f), d4);
        localz.add(localw2);
        localw3 = new a.d.w(d1 + localg_1.h, d4 + (localg_1.u - localg_1.f));
        localz.add(localw3);
        localw4 = new a.d.w(localw3.a, d2 + localg_2.h - (localg_2.g - localg_2.v));
        localz.add(localw4);
        localw5 = new a.d.w(localw4.a - (localg_2.g - localg_2.v), d2 + localg_2.h);
        localz.add(localw5);
        localw6 = new a.d.w(d7 + (localg_2.g - localg_2.v), localw5.b);
        localz.add(localw6);
        localw7 = new a.d.w(d7, localw6.b - (localg_2.g - localg_2.v));
        if (!bool2)
        {
          localz.add(localw7);
          if (!bool1) {
            break;
          }
        }
        break;
      case 2: 
        d4 = paramzc.a() + paramzc.c() * 0.5D + paramw1.a;
        d7 = paramzc.b() + paramzc.d() * 0.5D + paramw2.b;
        localw2 = new a.d.w(d4, d2 + localg_1.h - (localg_1.u - localg_1.f));
        localz.add(localw2);
        localw3 = new a.d.w(d4 - (localg_1.u - localg_1.f), d2 + localg_1.h);
        localz.add(localw3);
        localw4 = new a.d.w(paramzc.a() - localg_2.h + (localg_2.g - localg_2.v), localw3.b);
        localz.add(localw4);
        localw5 = new a.d.w(paramzc.a() - localg_2.h, localw4.b - (localg_2.g - localg_2.v));
        localz.add(localw5);
        localw6 = new a.d.w(localw5.a, d7 + (localg_2.g - localg_2.v));
        localz.add(localw6);
        localw7 = new a.d.w(localw6.a + (localg_2.g - localg_2.v), d7);
        if (!bool2)
        {
          localz.add(localw7);
          if (!bool1) {
            break;
          }
        }
        break;
      case 3: 
        d4 = paramzc.b() + paramzc.d() * 0.5D + paramw1.b;
        d7 = paramzc.a() + paramzc.c() * 0.5D + paramw2.a;
        localw2 = new a.d.w(paramzc.a() - localg_1.h + (localg_1.u - localg_1.f), d4);
        localz.add(localw2);
        localw3 = new a.d.w(paramzc.a() - localg_1.h, d4 - (localg_1.u - localg_1.f));
        localz.add(localw3);
        localw4 = new a.d.w(localw3.a, paramzc.b() - localg_2.h + (localg_2.g - localg_2.v));
        localz.add(localw4);
        localw5 = new a.d.w(localw4.a + (localg_2.g - localg_2.v), paramzc.b() - localg_2.h);
        localz.add(localw5);
        localw6 = new a.d.w(d7 - (localg_2.g - localg_2.v), localw5.b);
        localz.add(localw6);
        localw7 = new a.d.w(d7, localw6.b + (localg_2.g - localg_2.v));
        if (!bool2)
        {
          localz.add(localw7);
          if (!bool1) {
            break;
          }
        }
        break;
      }
      break;
    case 2: 
      localg_1 = paramArrayOfkb[parama_.c].a(parama_);
      localg_2 = paramArrayOfkb[(parama_.c + 1 & 0x3)].a(parama_);
      kb.g_ localg_3 = paramArrayOfkb[parama_.d].a(parama_);
      double d8;
      a.d.w localw9;
      a.d.w localw10;
      switch (parama_.c)
      {
      case 0: 
      default: 
        d6 = paramzc.a() + paramzc.c() * 0.5D + paramw1.a;
        d8 = paramzc.a() + paramzc.c() * 0.5D + paramw2.a;
        localw3 = new a.d.w(d6, paramzc.b() - localg_1.h + (localg_1.u - localg_1.f));
        localz.add(localw3);
        localw4 = new a.d.w(d6 + (localg_1.u - localg_1.f), paramzc.b() - localg_1.h);
        localz.add(localw4);
        localw5 = new a.d.w(d1 + localg_2.h - (localg_1.u - localg_1.f), localw4.b);
        localz.add(localw5);
        localw6 = new a.d.w(d1 + localg_2.h, localw3.b);
        localz.add(localw6);
        localw7 = new a.d.w(localw6.a, d2 + localg_3.h - (localg_3.g - localg_3.v));
        localz.add(localw7);
        localw8 = new a.d.w(localw7.a - (localg_3.g - localg_3.v), d2 + localg_3.h);
        localz.add(localw8);
        localw9 = new a.d.w(d8 + (localg_3.g - localg_3.v), localw8.b);
        localz.add(localw9);
        localw10 = new a.d.w(d8, localw7.b);
        if (!bool2)
        {
          localz.add(localw10);
          if (!bool1) {
            break;
          }
        }
        break;
      case 1: 
        d6 = paramzc.b() + paramzc.d() * 0.5D + paramw1.b;
        d8 = paramzc.b() + paramzc.d() * 0.5D + paramw2.b;
        localw3 = new a.d.w(d1 + localg_1.h - (localg_1.u - localg_1.f), d6);
        localz.add(localw3);
        localw4 = new a.d.w(d1 + localg_1.h, d6 + (localg_1.u - localg_1.f));
        localz.add(localw4);
        localw5 = new a.d.w(localw4.a, d2 + localg_2.h - (localg_1.u - localg_1.f));
        localz.add(localw5);
        localw6 = new a.d.w(localw3.a, d2 + localg_2.h);
        localz.add(localw6);
        localw7 = new a.d.w(paramzc.a() - localg_3.h + (localg_3.g - localg_3.v), localw6.b);
        localz.add(localw7);
        localw8 = new a.d.w(paramzc.a() - localg_3.h, localw7.b - (localg_3.g - localg_3.v));
        localz.add(localw8);
        localw9 = new a.d.w(localw8.a, d8 + (localg_3.g - localg_3.v));
        localz.add(localw9);
        localw10 = new a.d.w(localw7.a, d8);
        if (!bool2)
        {
          localz.add(localw10);
          if (!bool1) {
            break;
          }
        }
        break;
      case 2: 
        d6 = paramzc.a() + paramzc.c() * 0.5D + paramw1.a;
        d8 = paramzc.a() + paramzc.c() * 0.5D + paramw2.a;
        localw3 = new a.d.w(d6, d2 + localg_1.h - (localg_1.u - localg_1.f));
        localz.add(localw3);
        localw4 = new a.d.w(d6 - (localg_1.u - localg_1.f), d2 + localg_1.h);
        localz.add(localw4);
        localw5 = new a.d.w(paramzc.a() - localg_2.h + (localg_1.u - localg_1.f), localw4.b);
        localz.add(localw5);
        localw6 = new a.d.w(paramzc.a() - localg_2.h, localw3.b);
        localz.add(localw6);
        localw7 = new a.d.w(localw6.a, paramzc.b() - localg_3.h + (localg_3.g - localg_3.v));
        localz.add(localw7);
        localw8 = new a.d.w(localw7.a + (localg_3.g - localg_3.v), paramzc.b() - localg_3.h);
        localz.add(localw8);
        localw9 = new a.d.w(d8 - (localg_3.g - localg_3.v), localw8.b);
        localz.add(localw9);
        localw10 = new a.d.w(d8, localw7.b);
        if (!bool2)
        {
          localz.add(localw10);
          if (!bool1) {
            break;
          }
        }
        break;
      case 3: 
        d6 = paramzc.b() + paramzc.d() * 0.5D + paramw1.b;
        d8 = paramzc.b() + paramzc.d() * 0.5D + paramw2.b;
        localw3 = new a.d.w(paramzc.a() - localg_1.h + (localg_1.u - localg_1.f), d6);
        localz.add(localw3);
        localw4 = new a.d.w(paramzc.a() - localg_1.h, d6 - (localg_1.u - localg_1.f));
        localz.add(localw4);
        localw5 = new a.d.w(localw4.a, paramzc.b() - localg_2.h + (localg_1.u - localg_1.f));
        localz.add(localw5);
        localw6 = new a.d.w(localw3.a, paramzc.b() - localg_2.h);
        localz.add(localw6);
        localw7 = new a.d.w(d1 + localg_3.h - (localg_3.g - localg_3.v), localw6.b);
        localz.add(localw7);
        localw8 = new a.d.w(d1 + localg_3.h, localw7.b + (localg_3.g - localg_3.v));
        localz.add(localw8);
        localw9 = new a.d.w(localw8.a, d8 - (localg_3.g - localg_3.v));
        localz.add(localw9);
        localw10 = new a.d.w(localw7.a, d8);
        if (!bool2)
        {
          localz.add(localw10);
          if (!bool1) {
            break;
          }
        }
        break;
      }
      break;
    case 3: 
      localg_1 = paramArrayOfkb[parama_.c].a(parama_);
      localg_2 = paramArrayOfkb[parama_.d].a(parama_);
      double d5;
      switch (parama_.c)
      {
      case 0: 
      default: 
        d5 = paramzc.a() + paramzc.c() * 0.5D + paramw1.a;
        d7 = paramzc.b() + paramzc.d() * 0.5D + paramw2.b;
        localw2 = new a.d.w(d5, paramzc.b() - localg_1.h + (localg_1.u - localg_1.f));
        localz.add(localw2);
        localw3 = new a.d.w(d5 - (localg_1.u - localg_1.f), paramzc.b() - localg_1.h);
        localz.add(localw3);
        localw4 = new a.d.w(paramzc.a() - localg_2.h + (localg_2.g - localg_2.v), localw3.b);
        localz.add(localw4);
        localw5 = new a.d.w(paramzc.a() - localg_2.h, localw4.b + (localg_2.g - localg_2.v));
        localz.add(localw5);
        localw6 = new a.d.w(localw5.a, d7 - (localg_2.g - localg_2.v));
        localz.add(localw6);
        localw7 = new a.d.w(localw6.a + (localg_2.g - localg_2.v), d7);
        if (!bool2)
        {
          localz.add(localw7);
          if (!bool1) {
            break;
          }
        }
        break;
      case 1: 
        d5 = paramzc.b() + paramzc.d() * 0.5D + paramw1.b;
        d7 = paramzc.a() + paramzc.c() * 0.5D + paramw2.a;
        localw2 = new a.d.w(d1 + localg_1.h - (localg_1.u - localg_1.f), d5);
        localz.add(localw2);
        localw3 = new a.d.w(d1 + localg_1.h, d5 - (localg_1.u - localg_1.f));
        localz.add(localw3);
        localw4 = new a.d.w(localw3.a, paramzc.b() - localg_2.h + (localg_2.g - localg_2.v));
        localz.add(localw4);
        localw5 = new a.d.w(localw4.a - (localg_2.g - localg_2.v), paramzc.b() - localg_2.h);
        localz.add(localw5);
        localw6 = new a.d.w(d7 + (localg_2.g - localg_2.v), localw5.b);
        localz.add(localw6);
        localw7 = new a.d.w(d7, localw6.b + (localg_2.g - localg_2.v));
        if (!bool2)
        {
          localz.add(localw7);
          if (!bool1) {
            break;
          }
        }
        break;
      case 2: 
        d5 = paramzc.a() + paramzc.c() * 0.5D + paramw1.a;
        d7 = paramzc.b() + paramzc.d() * 0.5D + paramw2.b;
        localw2 = new a.d.w(d5, d2 + localg_1.h - (localg_1.u - localg_1.f));
        localz.add(localw2);
        localw3 = new a.d.w(d5 + (localg_1.u - localg_1.f), d2 + localg_1.h);
        localz.add(localw3);
        localw4 = new a.d.w(d1 + localg_2.h - (localg_2.g - localg_2.v), localw3.b);
        localz.add(localw4);
        localw5 = new a.d.w(d1 + localg_2.h, localw4.b - (localg_2.g - localg_2.v));
        localz.add(localw5);
        localw6 = new a.d.w(localw5.a, d7 + (localg_2.g - localg_2.v));
        localz.add(localw6);
        localw7 = new a.d.w(localw6.a - (localg_2.g - localg_2.v), d7);
        if (!bool2)
        {
          localz.add(localw7);
          if (!bool1) {
            break;
          }
        }
        break;
      case 3: 
        d5 = paramzc.b() + paramzc.d() * 0.5D + paramw1.b;
        d7 = paramzc.a() + paramzc.c() * 0.5D + paramw2.a;
        localw2 = new a.d.w(paramzc.a() - localg_1.h + (localg_1.u - localg_1.f), d5);
        localz.add(localw2);
        localw3 = new a.d.w(paramzc.a() - localg_1.h, d5 + (localg_1.u - localg_1.f));
        localz.add(localw3);
        localw4 = new a.d.w(localw3.a, d2 + localg_2.h - (localg_2.g - localg_2.v));
        localz.add(localw4);
        localw5 = new a.d.w(localw4.a + (localg_2.g - localg_2.v), d2 + localg_2.h);
        localz.add(localw5);
        localw6 = new a.d.w(d7 - (localg_2.g - localg_2.v), localw5.b);
        localz.add(localw6);
        localw7 = new a.d.w(d7, localw6.b - (localg_2.g - localg_2.v));
        localz.add(localw7);
      }
      break;
    }
    return localz;
  }
  
  static final a.d.w a(zc paramzc, a.d.w paramw, int paramInt, double paramDouble)
  {
    switch (paramInt)
    {
    case 0: 
    default: 
      return new a.d.w(paramw.a + paramzc.a() + paramzc.c() * 0.5D, paramzc.b() - paramDouble);
    case 1: 
      return new a.d.w(paramzc.a() + paramzc.c() + paramDouble, paramzc.b() + paramzc.d() * 0.5D + paramw.b);
    case 2: 
      return new a.d.w(paramw.a + paramzc.a() + paramzc.c() * 0.5D, paramzc.b() + paramzc.d() + paramDouble);
    }
    return new a.d.w(paramzc.a() - paramDouble, paramzc.b() + paramzc.d() * 0.5D + paramw.b);
  }
  
  static final class a_
  {
    a.c.d a;
    int c;
    int d;
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.f.d.a.rc

 * JD-Core Version:    0.7.0.1

 */